<template>
  <div class="hello">
    <h1>{{ msg }}</h1><el-icon :size="30" color="red"><SwitchFilled /></el-icon>
    <el-row class="mb-4">
      <el-button>Default</el-button>
      <el-button type="primary">Primary</el-button>
      <el-button type="success">Success</el-button>
      <el-button type="info">Info</el-button>
      <el-button type="warning">Warning</el-button>
      <el-button type="danger">Danger</el-button>
      <el-button>中文</el-button>
    </el-row>
    <el-switch v-model="value1" />
    <el-switch v-model="value2" class="ml-2" active-color="#13ce66" inactive-color="#ff4949" />
  </div>
</template>

<script>

import { ref } from "vue"

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  setup() {
    const value1 = ref(false)
    const value2 = ref(true)

    return {
      value1,
      value2
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}
</style>
